package com.ht.medicaltreatment.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.ht.medicaltreatment.R
import com.ht.medicaltreatment.bean.GuiGeData

class ItemCaiZhiAdapter:BaseQuickAdapter<GuiGeData,BaseViewHolder>(R.layout.item_string_layout) {
    override fun convert(holder: BaseViewHolder, item: GuiGeData) {
        holder.setText(R.id.tvName,item.material)
        if(item.isChecked){
            holder.setBackgroundResource(R.id.tvName,R.drawable.shape_add_bg)
        }else{
            holder.setBackgroundResource(R.id.tvName,R.drawable.shape_name_bg)
        }
    }
}
